
package loadScore;

import loadScore.Score;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;
import elementos.Ranking;


@Stateless
@LocalBean
public class ScoreBean {
    
    private Score loader;
    
    public Ranking saveScore(String id, Float score,Integer level){
        loader=new Score(level);
        loader.saveScore(id, score,level);
        return loader.loadRanking();
    }

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")

}
